-
-
Notifications
You must be signed in to change notification settings - Fork 808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add math/base/special/lucasf
#6223
base: develop
Are you sure you want to change the base?
Conversation
Coverage Report
The above coverage report was generated for the changes in this PR. |
Signed-off-by: Harsh <[email protected]>
@anandkaranubc could you please review this PR? |
Signed-off-by: Harsh <[email protected]>
math/base/special/lucasf
@anandkaranubc Would you mind taking a look at this PR? |
/stdlib merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @hrshya, thanks for your work on this! I’ve added some comments on the PR. A few areas need improvement.
lib/node_modules/@stdlib/math/base/special/lucasf/examples/c/example.c
Outdated
Show resolved
Hide resolved
|
||
#### lucasf( n ) | ||
|
||
Computes the nth [Lucas number][lucas-number] in single-precision floating-point format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment
<!-- eslint no-undef: "error" --> | ||
|
||
```javascript | ||
var lucasf = require( '@stdlib/math/base/special/lucasf' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also be refactored to use logEachMap
|
||
#### stdlib_base_lucasf( n ) | ||
|
||
Computes the nth [Lucas number][lucas-number] in single-precision floating-point format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment
Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Harsh <[email protected]>
Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Harsh <[email protected]>
…xample.c Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Harsh <[email protected]>
Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Harsh <[email protected]>
Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Harsh <[email protected]>
Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Harsh <[email protected]>
Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Harsh <[email protected]>
Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Harsh <[email protected]>
Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Harsh <[email protected]>
Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Harsh <[email protected]>
Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Harsh <[email protected]>
Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Harsh <[email protected]>
…native/benchmark.c Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Harsh <[email protected]>
…native/benchmark.c Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Harsh <[email protected]>
…nchmark.js Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Harsh <[email protected]>
…native/benchmark.c Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Harsh <[email protected]>
…benchmark.c Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Harsh <[email protected]>
@anandkaranubc can you help me out here. |
/stdlib merge |
/stdlib lint-autofix |
@anandkaranubc, the slash command failed to complete. Please check the workflow logs for details. |
|
||
// TODO: replace with `powf` when available | ||
return roundf( pow( PHI, n ) ); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hrshya, this needs to be fixed. There is a missing function implementation. This is the primary reason why the CI/CD workflows are failing. It's a good practice to run the benchmarks locally first to confirm if nothing is broken.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did ran the benchmarks when I first created the PR but not this time because there were any major changes in those files.
As a side note, always make sure your feature branch is in sync with the |
Actually it was in sync but the thing was I didn't have this branch locally so I pulled it from origin and i thought as my develop branch is in sync so this branch would also be but i was wrong and i should have checked it before commiting |
Signed-off-by: Harsh <[email protected]>
Signed-off-by: Harsh <[email protected]>
Signed-off-by: Harsh <[email protected]>
@anandkaranubc All the issues have been resolved. Can you give it a quick review. |
Resolves none .
Description
This pull request:
math/base/special/lucasf
.Related Issues
This pull request:
Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers